package com.huo.thread.createthreaddemo;

public class RunnableDemo implements  Runnable {
    @Override
    public void run() {
        System.out.println("线程：" + Thread.currentThread().getName());
    }

    public static void main(String[] args) {

        RunnableDemo rd = new RunnableDemo();
        Thread t1 = new Thread( rd);
        Thread t2 = new Thread( rd);
        Thread t3 = new Thread( new RunnableDemo());
        t1.start();
        t2.start();
        t3.start();
    }
}
